<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Create a stopped EvStat watcher object</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="evstat.construct.html">« EvStat::__construct</a></li>
      <li style="float: right;"><a href="evstat.prev.html">EvStat::prev »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.evstat.html">EvStat</a></li>
    <li>Create a stopped EvStat watcher object</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="evstat.createstopped" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EvStat::createStopped</h1>
  <p class="verinfo">(PECL ev &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">EvStat::createStopped</span> &mdash; <span class="dc-title">Create a stopped EvStat watcher object</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-evstat.createstopped-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span>
   <span class="modifier">public</span>
   <span class="modifier">static</span>
   <span class="methodname"><strong>EvStat::createStopped</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$path</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type">float</span>
     <code class="parameter">$interval</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span>
     <code class="parameter">$callback</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span>
     <code class="parameter">$data</code>
    <span class="initializer"> = <strong><code>null</code></strong></span>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$priority</code>
    <span class="initializer"> = 0</span>
   </span><br>): <span class="type"><span class="type void">void</span></span></div>

  <p class="para rdfs-comment">
   Creates EvStat watcher object, but doesn&#039;t start it
   automatically(unlike
   <span class="methodname"><a href="evstat.construct.html" class="methodname">EvStat::__construct()</a></span>
   ).
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-evstat.createstopped-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>

     <code class="parameter">path</code>
    </dt>

    <dd>

     <p class="para">
      The path to wait for status changes on.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">interval</code>
    </dt>

    <dd>

     <p class="para">
      Hint on how quickly a change is expected to be detected and should
      normally be specified as
      <strong><code>0.0</code></strong>
      to let
      <em class="emphasis">libev</em>
      choose a suitable value.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">callback</code>
    </dt>

    <dd>

     <p class="para">
      See
      <a href="ev.watcher-callbacks.html" class="link">Watcher callbacks</a>
      .
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">data</code>
    </dt>

    <dd>

     <p class="para">
      Custom data associated with the watcher.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">priority</code>
    </dt>

    <dd>

     <p class="para">
      <a href="class.ev.html#ev.constants.watcher-pri" class="link">Watcher priority</a>
     </p>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-evstat.createstopped-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a stopped EvStat watcher object on success.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-evstat.createstopped-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member">
    <span class="methodname"><a href="evstat.construct.html" class="methodname" rel="rdfs-seeAlso">EvStat::__construct()</a> - Constructs EvStat watcher object</span>
   </li>
   <li class="member">
    <span class="methodname"><a href="evwatcher.start.html" class="methodname" rel="rdfs-seeAlso">EvWatcher::start()</a> - Starts the watcher</span>
   </li>
  </ul>
 </div>

</div></div></div></body></html>